<?php

namespace common\models;

use Yii;

/**
 * This is the model class for table "package_initiation_plan".
 *
 * @property string $id
 * @property string $package_id
 * @property string $stage
 * @property string $job
 * @property string $created_at
 * @property integer $lock_user
 * @property string $lock_timestamp
 */
class PackageInitiationPlan extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'package_initiation_plan';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['package_id', 'stage'], 'required'],
            [['package_id', 'lock_user'], 'integer'],
            [['job'], 'string'],
            [['created_at'], 'safe'],
            [['stage', 'lock_timestamp'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'package_id' => 'Package ID',
            'stage' => 'Stage',
            'job' => 'Job',
            'created_at' => 'Created At',
            'lock_user' => 'Lock User',
            'lock_timestamp' => 'Lock Timestamp',
        ];
    }
}
